function kxf(a,b){
    $(a).click(function(){
        var winH = $(window).height();
        var c = b + 1;
        $('body,html').animate({
            scrollTop: c*winH
        },600,function(){

        })
    })
}

kxf(类名,被点击元素的下标)